<extend name="Base/commoncenter"/>

<block name="body">
    <!----第一次使用还没有包裹---->
    <lt name="packagecount" value="0">
        <div style="text-align: center;margin-top: 100px;">
            <p>No package found</p>
            <a class="btn btn-success btn-lg" href="{:U('Center/warehouse','CID=-1')}">+ 添加包裹预报入库</a>
        </div>    
    </lt>
    
    <div class="data-table table-striped" <lt name="packagecount" value="0">style="display: none"  </lt>>
        <div class="row" style="margin-bottom: 30px;">
            <div class="col-md-10">
                <ul class="nav nav-pills" role="tablist">
                    <li role="presentation" <eq name="type" value="-1">class="active"</eq>><a href="{:U('index','type=-1')}">全部</a></li>
                    <li role="presentation" <eq name="type" value="10">class="active"</eq>><a href="{:U('index','type=10')}">预报入库</a></li>
                    <li role="presentation" <eq name="type" value="1000">class="active"</eq>><a href="{:U('index','type=1000')}">抵达仓库</a></li>
                    <li role="presentation" <eq name="type" value="2000">class="active"</eq>><a href="{:U('index','type=2000')}">入库完毕</a></li>
                </ul>
            </div>
            <div class="col-md-2"><a class="btn btn-success" href="{:U('Center/warehouse','CID=-1')}">+ 添加包裹预报入库</a></div>
        </div>
        <table class="table table-hover">
            <thead>
                <tr>
                  
                    <th class="">仓库名称</th>
                    <th class="">包裹名称</th>
                    <th class="">申报价值</th>                
                    <th class="">包裹重量参考</th>             
                    <th class="">创建日期</th>
                    <th class="">状态</th>                  
                </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>              
                        <td>[{$vo.wid|get_warehouse_country}] {$vo.wid|get_warehouse_name}</td>

                        <td>{$vo.id}#<strong>{$vo.name}  </strong><br/>{$vo.remark}</td>
                        <td>{$vo.price}</td>
                        <td><gt name="vo.weight" value="0">秤重：{$vo.weight|get_kg}Kg</gt>
                            <br/>
                            <gt name="vo.bulkfactor" value="0">体积重：{$vo.bulkfactor|get_kg}Kg</gt>
                        </td>
                        <td><span>{$vo.createdate|time_format}</span></td>		 
                        <td>{$vo.status_text}<i class='glyphicon glyphicon-info-sign' style='color: #D5D5D5;padding-left: 3px;'></i>
                       <div class="progress">
                           <div class="progress-bar progress-bar-success progress-bar-striped active"  role="progressbar" aria-valuenow="{$vo.status}" aria-valuemin="0" aria-valuemax="7000" style="width: {$vo.status|get_baifengbi}%">
                                    <span class="sr-only">45% Complete</span>
                                </div>
                           </div>                     
                        </td>                        
                    </tr>
                </volist>
                <else/>
                <td colspan="10" class="text-center"> 暂时还没有数据! </td>
            </notempty>
            </tbody>
        </table>
    </div>
 


</block>